added error logging
fixed placeholder