fixes #63: added return value to get_layer_ids()