license added, error handling