updated compile with debug msgs