fixed handling of --all
added nullabe constraints
bug fixes