added error message for multiple layer request, fixed segfault