added lib.app, argument handling.