make sub directory and use library