add query to package-def files. add delay to deploys. fixes #7