used pathname to append bin