add dev and library-only flag