error handling
add money directive