adding error handling funcionality
adding debug delay on cliente controller