export skin path functions and fix bug in buffer handling