added console to application
fixed some issues