added status checker, input flattener