added support for the --only flag