improve output and error handling, use 1 script